﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Base.Master" AutoEventWireup="true" CodeBehind="RoleDetail.aspx.cs" Inherits="Exhibition.Manage.RoleDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      <div id="tabs" class="easyui-tabs" fit="true" border="false" style="width:1000px;height:1000px;">
        <div title="角色设置">
            <table class="tbs_table">
                <tr>
                    <td colspan="2" class="htitle">
                        <input type="hidden" runat="server" id="hfId" />
                        角色设置</td>
                </tr>

                <tr>
                    <td class="tdtitle" style="width: 98px">角色名称</td>
                    <td class="tddata">
                        <input type="text" runat="server" id="txtRoleName" datafield="txtRoleName" /></td>
                </tr>
                <tr>
                    <td class="tdtitle" style="width: 98px">角色描述</td>
                    <td class="tddata">
                        <asp:TextBox ID="txtRoleDesc" runat="server" TextMode="MultiLine" Rows="5" Columns="120"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td class="tdtitle" style="width: 98px">是否启用</td>
                    <td class="tddata">
                        <asp:RadioButtonList ID="rdoUsed" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0" Selected="True" >启用</asp:ListItem>
                            <asp:ListItem Value="1">禁用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tdtitle" style="width: 98px">排序</td>
                    <td class="tddata">
                        <asp:TextBox ID="txtOrderId" runat="server"  Text="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>

                    <td align='center' colspan="2">
                        <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="bt_wb1"  OnClick="btnSave_Click" OnClientClick="SetCheck();"/>&nbsp;&nbsp;
                        <input type="button" value="返回" class="bt_wb1" onclick="YXQ.Manager.CloseDialog();" />
                    </td>
                </tr>

            </table>
        </div>
        <div title="权限设置" style="padding: 20px; overflow: hidden;">
            <div id="loading">
            <img src="../images/loading.gif" /></div>
            <div id="tree" style='padding-top: 10px;'>
            </div>
            <table>
              <tr>
                <td align='center' colspan="2">
                    <input type="hidden" id="hidRole" runat="server" />
                  
                    <asp:Button ID="Button1" runat="server" Text="保存" CssClass="bt_wb1"  OnClick="btnSave_Click" OnClientClick="SetCheck();"/>&nbsp;&nbsp;
                    <input type="button" value="返回" class="bt_wb1" onclick="YXQ.Manager.CloseDialog();" />
                </td>
                </tr>
          </table>
        </div>
    </div>
    <script type="text/javascript">
        function SetCheck() {
            var s="";
            var nodes = $('#tree').tree('getChecked');
            for (var i = 0; i < nodes.length; i++) {
                if (s != '') s += ',';
                s += nodes[i].id;
            }
            $("#<%=hidRole.ClientID%>").val(s);
        }
        $('#tree').tree({
            url: '../handler/MenuHandler.ashx?CurId='+<%=reqID%>,
            checkbox:true,
            onClick: function (node) {
                
                $(this).tree('toggle', node.target);

            },

            onLoadSuccess: function () {
                $("#loading").hide();
            }

        });

    </script>
</asp:Content>
